<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .parent{
            position: relative;
            margin: 0 auto;
            margin-top: 40px;
            width: 100px;
            height: 100px;
            /* background-color: rgba(255,0,0,.5); */
            transform: rotate3d(1,0,0,-33.5deg) rotate3d(0,1,0,45deg);
            transform-style:preserve-3d;
            animation:loop 6s ease-in-out infinite;
        }
        .item{
           position: absolute;
           top: 0;
           bottom: 0;
           right: 0;
           left: 0;
           backface-visibility: visible;
        }

        @keyframes loop{
            0%{
                transform: rotate3d(1,0,0,-33.5deg) rotate3d(0,1,0,45deg);
            }
            50%,100%{
                transform: rotateX(393.5deg) rotateY(315deg);
            }
        }

        .font{
            background-color: rgba(0,255,0,.5);
            transform: rotate3d(0,1,0,90deg) translateZ(-50px);
        }
        .back{
            background-color:rgba(0,0,255,.5);
            transform: rotate3d(0,1,0,90deg) translateZ(50px);
        }
        .left{
            background-color: rgba(0,155,100,.5);
            transform: translateZ(50px);
        }
        .right{
            background-color: rgba(100, 200, 80, .5);
            transform: translateZ(-50px);
        }
        .top{
            background-color: rgba(200, 100, 30, .5);
            transform: rotateX(90deg) translateZ(-50px) translateY(-5px);
        }
        .top{
            background-color: rgba(200, 200, 30, .5);
            transform: rotateX(90deg) translateZ(50px) translateY(-5px);
        }
    </style>
</head>
<body>
    <div class="parent">div
        <div class="item font">1</div>
        <div class="item back">2</div>
        <div class="item left">3</div>
        <div class="item right">4</div>
        <div class="item top">5</div>
        <div class="item bottom">6</div>
    </div>
</body>
</html>